export function checkLight(_this) {
  let answer = [
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [1, 2, 1, 0],
    [1, 2, 1, 0],
    [1, 2, 1, 0],
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [0, 1, 2, 1],
    [0, 1, 2, 1]];
  for (let i = 0; i < 13; ++i) {
    if (_this.planeArr[i].time !== 4) {
      return {
        finish: false,
        index: i + 1
      }
    }
    for (let j = 0; j < 4; ++j) {
      if (answer[i][j] !== _this.planeArr[i].light[j].id - 1) {
        return {
          finish: false,
          index: i + 1
        }
      }
    }
  }
  return {
    finish: true,
    index: 0
  }
}
